<div ng-controller="AdminlayoutCtrl" ng-init="listAction()" class="sui-form form-horizontal">
    <ul class="sui-breadcrumb">
        <li><a href="#/adminlayout/list">装修模板</a></li>
         <li class="active">
            <a href="#/layout/list?adminlayout=1" id="addNew" class="sui-btn btn-primary">+{{'新建模板' | translate}}</a>
        </li>
    </ul>
    
    <div class="sui-row-fluid">
        <table class="sui-table table-bordered">
            <thead>
                <tr>
                    <th>{{'#'|translate}}</th>
                    <th>{{'模板类型'|translate}}</th>
                    <th>{{'operation'|translate}}</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="(key, list) in adminlayouts">
                    <td>{{list.admin_layout_id}}</td>
                    <td >
                        {{list.name}}
                    </td>
                    <td >
                        <button class="sui-btn btn-success" ng-click="testQrCode(list.page,list.admin_layout_id)">预览</button>
                        <a href="#/layout/list?adminlayout=1&admin_layout_id={{list.admin_layout_id}}" class="sui-btn btn-primary">编辑</a>
                         <button ng-click="delete(list.admin_layout_id)" class="sui-btn btn-danger ng-binding">删除</button>
                    </td>
                </tr>
            </tbody>
        </table>
        <!-- 分页start -->
        <pager page-no="1" page-size="pageSize" total="total_count" get-data="getlist(pageNo)"></pager>
    </div>
</div>